package org.budo.jdbc.driver.statement.impl;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Map;

import org.budo.jdbc.driver.AbstractBudoJdbcPreparedStatement;
import org.budo.jdbc.driver.resultset.impl.MapArrayResultSet;
import org.budo.jdbc.driver.statement.AbstractJdbcStatement;

/**
 * SHOW status
 * 
 * @author lmw
 */
public class SHOW_STATUS extends AbstractJdbcStatement {
    @Override
    public void execute(PreparedStatement preparedStatement) throws SQLException{
        String[] columnNames = new String[] { "Variable_name", "Value" };
        Map[] mapArray = new Map[] {};
        ResultSet resultSet = new MapArrayResultSet(columnNames, mapArray);
        ((AbstractBudoJdbcPreparedStatement) preparedStatement).setResultSet(resultSet);
    }
}
